/**
 * Created by 朱理哲 on 17/7/28.
 */
import React, {Component} from 'react';
import {
    AppRegistry,
    StyleSheet,
    Text,
    TextInput,
    View,
    PixelRatio
} from 'react-native';
// import {requestData} from '../util/Request/NetUtil'
// import DBUtil from '../util/DBUtil'
import RequestUtil from '../util/NetUtil'

export async function GetOrderList(pageNo,orderStatus) {
    let param = {
        "orderType":orderStatus
    };
    return RequestUtil.requestData('order/orderList', param);
}

// export async function CancelOrder(param) {
//     return RequestUtil.requestData('order/client/order/cancel',param);
// }
//
// export async function DeleteOrder(param) {
//     return RequestUtil.requestData('order/client/order/delete', param);
// }
//
export async function SignOrder(param) {
    return RequestUtil.requestData('order/confirmOrder',param);
}
//
// export async function AgainOrder(shopOrderId) {
//     let user = await DBUtil.currentUser();
//     let param = {shopOrderId:shopOrderId,
//         userId:user.userInfo.user_id};
//     return RequestUtil.requestData('order/client/order/againOrder',param);
// }

export async function PraiseOrder(param) {
    return RequestUtil.requestData('comment/create',param);
}